{extend name="public:head"}
{block name="main"}

<form class="layui-form" action="/admin/Admin/addAdmin?XDEBUG_SESSION_START=10044" method="POST">


    <div class="layui-form-item">
        <label class="layui-form-label">管理员账号</label>
        <div class="layui-input-inline" style="width:350px;">
            <input type="hidden" name="id" value="{$info['id']|default=''}">
            <input type="hidden" name="scope" value="32">
            <input type="text" name="username" required lay-verify="required" placeholder="添加账号" autocomplete="off" class="layui-input"  value="{$info['username']|default=''}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">密码</label>
        <div class="layui-input-inline" style="width:350px;">
            <input name="password_one" type="password" placeholder="请输入密码(修改密码则需要输入原密码)"  class="layui-input" >
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">确定密码</label>
        <div class="layui-input-inline" style="width:350px;">
            <input name="password_tow" type="password" placeholder="请输入密码"  class="layui-input" >
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block">
            <input type="checkbox" name="status" lay-skin="switch" lay-text="启用|禁用" value="1" lay-filter="switchTest" {present name="$info.status"}{if $info.status  == 1 } checked {/if}{/present}>
            <div class="layui-unselect layui-form-switch" lay-skin="_switch">
                <em>OFF</em><i></i>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="formDemo">提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>

</form>

<script type="text/javascript">



    layui.use(['form','layedit','upload'], function(){
        var form = layui.form
        var upload  = layui.upload;
    });

</script>

{/block}